UseSubmitOptionsType
import { UseSubmitOptionsType } from "@hyper-fetch/react"
Description
Defined in react/src/hooks/use-submit/use-submit.types.ts:21
Preview
type UseSubmitOptionsType<T> = { bounce?: boolean; deepCompare?: boolean | typeof isEqual; dependencyTracking?: boolean; disabled?: boolean; initialData?: CacheValueType<ExtractResponseType<T>, ExtractErrorType<T>>[data] | null } & ({ bounceTime?: number; bounceType?: debounce } | { bounceTime?: number; bounceTimeout?: number; bounceType: throttle });
Structure
{
bounce: boolean;
deepCompare: boolean | typeof isEqual;
dependencyTracking: boolean;
disabled: boolean;
initialData: {
...params1: ResponseReturnType<Response, Error, Adapter>;
...params2: ResponseDetailsType;
cacheTime: number;
clearKey: string;
garbageCollection: number;
}[data] | null;
...params2: {bounceTime:number,bounceType:debounce} | {bounceTime:number,bounceTimeout:number,bounceType:throttle};
}